using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace MoniterPLC.ViewModel
{
    public class MainModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            // 这里可以注册视图到区域
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<MainWindow, MainViewModel>();
        }
    }
}